package pjwstk.jps.interpreter.envs;

import pjwstk.jps.result.*;
import pjwstk.jps.datastore.*;

/**
 * @author s9111_s10304
 *
 */
public class ENVSBinder implements IENVSBinder
{
	protected String name;
	protected IAbstractQueryResult value;
	
	public ENVSBinder(String aName, IAbstractQueryResult aValue) {
		name = aName;
		value = aValue;
	}

	public ENVSBinder(ISBAObject o) {
		this(o.getName(), ReferenceResult.createFromSBAObject(o));
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public IAbstractQueryResult getValue() {
		return value;
	}
}